package storage;

import java.util.List;

import net.jcip.annotations.Immutable;
import shape.Shape;

@Immutable
public class CanvasMemento implements Memento {

	private final List<Shape> shapes;

	public CanvasMemento(final List<Shape> shapes) {
		this.shapes = shapes;
	}

	@Override
	public List<Shape> getShapes() {
		return shapes;
	}
	
	public static Memento blankInstance() {
		return new NullCanvasMemento();
	}
}
